DegreeCentrality
DegreeCentrality[g] gives a list of vertex degrees for the vertices in the underlying simple graph of g.
DegreeCentrality[g,"In"] gives a list of vertex in-degrees.
DegreeCentrality[g,"Out"] gives a list of vertex out-degrees.
DegreeCentrality[{v->w,…},…] uses rules v->w to specify the graph g.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.